package com.ruoyi.system.service.college.impl;

import java.util.List;

import com.ruoyi.system.domain.college.Statistics.ResearchStatistics;
import com.ruoyi.system.mapper.award.research.ResearchStatisticsMapper;
import com.ruoyi.system.service.college.IResearchStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 科研经费与成果统计数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-24
 */
@Service
public class ResearchStatisticsServiceImpl implements IResearchStatisticsService
{
    @Autowired
    private ResearchStatisticsMapper researchStatisticsMapper;

    /**
     * 查询科研经费与成果统计数据
     * 
     * @param id 科研经费与成果统计数据主键
     * @return 科研经费与成果统计数据
     */
    @Override
    public ResearchStatistics selectResearchStatisticsById(Integer id)
    {
        return researchStatisticsMapper.selectResearchStatisticsById(id);
    }

    /**
     * 查询科研经费与成果统计数据列表
     * 
     * @param researchStatistics 科研经费与成果统计数据
     * @return 科研经费与成果统计数据
     */
    @Override
    public List<ResearchStatistics> selectResearchStatisticsList(ResearchStatistics researchStatistics)
    {
        return researchStatisticsMapper.selectResearchStatisticsList(researchStatistics);
    }

    /**
     * 新增科研经费与成果统计数据
     * 
     * @param researchStatistics 科研经费与成果统计数据
     * @return 结果
     */
    @Override
    public int insertResearchStatistics(ResearchStatistics researchStatistics)
    {
        return researchStatisticsMapper.insertResearchStatistics(researchStatistics);
    }

    /**
     * 修改科研经费与成果统计数据
     * 
     * @param researchStatistics 科研经费与成果统计数据
     * @return 结果
     */
    @Override
    public int updateResearchStatistics(ResearchStatistics researchStatistics)
    {
        return researchStatisticsMapper.updateResearchStatistics(researchStatistics);
    }

    /**
     * 批量删除科研经费与成果统计数据
     * 
     * @param ids 需要删除的科研经费与成果统计数据主键
     * @return 结果
     */
    @Override
    public int deleteResearchStatisticsByIds(Integer[] ids)
    {
        return researchStatisticsMapper.deleteResearchStatisticsByIds(ids);
    }

    /**
     * 删除科研经费与成果统计数据信息
     * 
     * @param id 科研经费与成果统计数据主键
     * @return 结果
     */
    @Override
    public int deleteResearchStatisticsById(Integer id)
    {
        return researchStatisticsMapper.deleteResearchStatisticsById(id);
    }
}
